import 'package:json_annotation/json_annotation.dart';

part 'token_bean.g.dart';

@JsonSerializable()
class TokenBean extends Object {
  @JsonKey(name: 'access_token')
  String accessToken;

  TokenBean(
    this.accessToken,
  );

  factory TokenBean.fromJson(Map<String, dynamic> srcJson) =>
      _$TokenBeanFromJson(srcJson);

  Map<String, dynamic> toJson() => _$TokenBeanToJson(this);
}
